// Copyright 2019 The rhyme_lph Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// y [author] rhyme_lph
// o [email]  rhymelph@gmail.com
// K [github] https://github.com/rhymelph

import 'package:base_plugin/base_plugin.dart';
import 'package:finance_app/src/entities/fixed_asset_entity.dart';
import 'package:finance_app/src/http_service/http_report_service.dart';
import 'package:flutter/material.dart';

class FixedAssetProvider extends BaseProvider<List<FixedAssetEntity>> {
  FixedAssetEntity currentSelect;

  @override
  Future get dataFuture => HttpReportService.fixedAssets(is_json: 1);

  void onChangeFixedAsset(FixedAssetEntity value) {
    obtainContext?.call((context) {
      Navigator.of(context).pop(value);
    });
  }
}
